added empty() onclick