adding macro in applicationcontroller