adjust widget layout