Fixed eventloop with draw and update call