fix html layout and css for item select table, html5 compatible