Refactored the cutom button code to custom google maps class