added page location exist check