Changed vimpc onconnect function to use event system