added better result citation and refactored the views.pl