Abstracted main classes into own file, implemented sortable, resizable and draggable UI