updated to respond with html instead of rack response