Closed #199 by creating javascript fuction for onclick event