changed ctrl-p settings, added last buffer switch