Moved main, added custom table model