Refactored out html to serperate file