add distance slider and sound effect