added header('location: gallery.php')