ajax functionality and routes along with controllers debug