add to invoke removeEvent function on load complete funciton