Fixing server side pet routes & AJAX queries for sidebar.controller