don't remove active class directly to improve transition performance as it prevents angular from updating active if the page is not changed