removed old function

removed function onClick