Updated active property of view when tab changes