fix javascript issues and edit submissions