extend show hide feature to indexfunction view as well;