add scroll to table, fix selection bug