adding create, update functions for location model
adding location model in front end properly