added thumbnail on index and edit