css refactor and flash message tweaks