changing html tags clearing and putting new; adding test for it