add photogallery,
remove unused codes