fixed error in rendering navigation on photo show page