method to programatically toggle top tab bar