tasks in layout code