moved from .onLoad to .onAttached