map hide show and bug fixes