added controller for slider