Adding if-statement to LocalTasksApi.setAction to kick off submission