make your HTML components statefull