refactored html main structure