Removed redundant event handler functions
Removed redundant locallib requires in instance functions