added method for check page loaded