added logic to display page or comment icon depending on update type