added onclick function to warning popup button