fixed the dock window width and started to manage offset preference