alert handling view adjustment