added clickItem method