add 'isMasterVisible' to check wether the master view is visible.