Split up update and render methods, removed unused imports