update enable disable on view page for phots