button fixes + condition on edit

Adding editbox condition to editPage and fixing up attr() vs data() so
delete buttons appear and work