added click overlay functionality