improve viewer_part_ui.php with repercussions on viewer_part.php and viewer.php