implemented common code

added basemap button