condition apply in index/show pagw