fix centring of the modal windows bug
fix bug when deleting layout blocks that have not yet been persisted to the db