set correct center for widget