fixes invalid html on activity page