solving bug with widgets