Added onclick method.