Fixed the layout and added EventFactory and subclasses for events
There are some useless bits in the code now that I have to remove, the cells don't update immediately, and the buttons are uncolored, but at least it works!