remove unnecessary html elements