Add setup for ajax call in frontend