Add checks in controllers

as far as i know
button for dismissable alerts should be THE FIRST node in .alert block