fixed html parsing bug & added submit button