added title for needs training page
query tweaks to be more rails-like