Adding ajax

use before_action