Updated resize and sort based on jquery-ui, updated some styles