added clickToFront option