updating gui and imports on event handler