removed extra end from submissions controller