several bug fixes, added selection by html5 tags.