check that `menu` is defined
fix updating pager on top of page