moved addRelatiohship to own function in editAGS
added close popup method to toggleediting

--------
noticed that marker is not being updated if a a building is clicked during edit mode...