added code to display the selected icons on view.php