adding button onclick class to map page