refresh from database on tab change