Fix resizing flicker and implement many new features