made some changes and fixed the issue where the page would reload on autopostback