change actioncontroller to applicationcontroller and clean views