everything works except echo in browse function: it displays nothing