added basic map editing funcitonality