extracted head + scripts from layout to new files
forbid deleting nodes with childs
added error flash message