moved notice from views to layout