added ability to lock the widget