added onLoad event for view