fixed bugs from qa, added automatic viewport size, added sorting of events/actors in gui