Implemented functionality for form submit buttons