Added styling and flash messages