updates application controller before action