first four steps with web page loading