Add action to handle submit button