broke up directions render and view functions, started query error logs