Add onclick function to label