Update and delete action on comments, sort comments, update state_machine