final changes to the rails app