reduce api requests when tabs are not shown