editing and adding map functionality