it's ok so far but remember that when you start to write too much logic in views you should use a helper to do a little bit of cleanner.