moved some code from main layout to ChecklistController controler where
it belongs