Changed program stucture and added volume slider