Implemented the draw page feature