update routes.rb AND add TimeConstaraint.rb