on loaded event and scopes of scopes