Removed onclick.
Removed several memory leak possibilities.