changed functionality for hiding and showing location divs