add show and edit posts link in view