prevent view creating multiple instance of event handlers