Added the ability to toggle between views of two or three, refactored JS, and added CSS