Added pagination method to MY_Controller