fixed bugs

delete photo and view log