Updated submit-app to work correctly