add bounds for map
refactor ProblemsController