fix for form buttons and spaces, check if widgets exists before apply on page