Changed window.onload to listview refresh. Though neither are working. Also added additional comments.