cleanup onLoad functionality