Implemented clear and submit button