Fixed a bug where the slider buttons were overwritte; removed unnecessary return statements