Remove old html cruft
Add released function to input