moved functions into MVC and basic slider functionality