cleaning up context, now make resizing buffers happen after present
fixing up flow of user input