add function in controller.html: press button go to 1st, last or any # of page