Removed unnecessary CSS styles, added much history/state functionality