changed require_relative to require in app controller