add outline and rebuild html