trying to optimize widgets