added feature for take photo view.