show alerts into layout instead of templates
add a test on error alert messages