fixed nesting issue, keyboard shortcuts

added keyboard shortcuts for next page/ previous page