handles html request