Move the alerts partial to layouts and put the render in the main layout.