Added framework for contextual action mode

See MainViewModeListener.java