Modifications in files.php, main.php and share.php