added more features, and scroll detecting