made active tabs use js instead of having the logic in the controller.