Debugging submit and cancel buttons