added loader to pages