added flash/error notices, layout .. application