added extension onclick functionality