updated rails app to have generic layout template