Updated widget code for offset options