refactored js by removing get request for new app form