Fixed issues with button click and panning

1) Should pan cleanly
2) Clicking marker with open/close
3) Clicking on a marker closes previous one.

Still to fix: Clicking on a newly created marker opens form on previous marker