Added clickout feature