Properly balance brackets so application layout works
Standaridse usage of flash in controllers