really fixed the nested forms this time definitely needs refactoring later on