ajax category functionality update