Edit CurrentPage Function