added onclick for inputs