extracted uibar into the HTML and now sorting buttons work