better construction of context content html elements