refactored html of prolog into separate file. aiming to have each prolog rule be only on one line