display new and edit in the same modal. When there is one one, the panel has 100% height in the modal.