Disabled submit button and fixed box counting bug

Disabled submit button when the user didn't make any annotations and
when the user has an editor open, and fixed box counting bug when
removing a box.