Update Controller.rb

added headless browser