Added board and graph to the view template
Added login check to graph function in admin