removed onclick events from html and handlded them in javascript