fixing get current active view