fixing layout to show alerts