Fixed redirection to function in ajax_functions.py problem