Flags ui implemented. General styling fixed. Bugfixes