created slider/question logic in controller