hiding and showing map as needed