added split view functionality