eventResize handling

added support for resize handling, and cleaned up console logging