fix menubar and add index pagination