Removed unused imports and changes name of buttonListener to
submitButtonListener