modified blog show page and added blog and type update func