added command hook that shifts window and changes view when certain applications are started