added command and keys to switch prev/next buffer