added click grey out js logic