fixed page numbers and added actions