hide the edit button of a block when the form is being displayed, fixes #158

It doesn't make sense to show the edit button when the edit form is already being shown. Furthermore, the button won't be hidden when the form is submitted.