Switched to listview

- switched from horizontalscrollview to listview
- fixed potential out of memory error