fixed assignment, scrolling buttons bug. Also made classes based on templates instead of class to allow for multiple classes of the same type.