remove useless code; adjust html