author code for layout.erb