put the logic in the view instead.