code review ApplicationController