Backend query works, now the front end