added method in controller to get the map size