added adjusted html and functionality for sortable styling