added slider control, organized code for first meet