i think it would still be better if the click event was applied in javascript, but that can be easily changed later.