Separate function for transition between read and unread icon