Some small corrections in the application controller