update to gather data from html instead of prompt