added initial code
changed .bind() to .on()