add methods to ApplicationController