Add check for empty profile deletion
Redesign main window layout to use grid system