Added view for trens - html in progress
fixed query bug