fixed some layout issues with widget