hide and show views based on conds