changing read and star attributes by clicking on them