Used flash messages instead of empty templates