added delete functions to the core, added edit functions to location views