routes & controllers working with AJAX