added page loading function - pradeep