Added functionality for population counter and fixed layout issues