refactoring tripplanner MVC model, gmaps not working