bugs on visibility and title changes