Fix add page dialog by pressing submit with enter button

Pressing enter on the add a page dialog submits to a new page rather than using ajax