added onkeyupdate stuff and missing gif