fixed some bug; Left manage-gallery and upload-gallery