update ApplicationController