added active view action and controller method