bug fixes + new view and results page in DB