Changed comment functionality to work with ajax