add ajax to sorting and create user