Remove unnecessary html elements