reworked delete and submit buttons