implemented show middleware; TODO dis middleware