added settings window & formatted main better