|#454| + Rahul| moving currentPage var into parent controller