add option to enable/disable autorotate