[TASK]Added Click handlers for outside clicks