added time limit for viewing photos