added click manager to run clicks only on the closets to front object