echo in views instead of functions