initializing page on run.