changed onclick functionality