protect view of non-exists problems
add_index_to_problems_code