Changing the way the submit resource button works