adjust the logic of determining current viewing work
add fade-in-out effect on photo_viewer