invite layout with logic