add cover page when provided
reformatting action.php