if clause for main widgets