   .done (data) ->
     loadProblems()
     apiNotify data
+    ga('send', 'event', 'Problem', 'Review', 'Basic')
     apiCall "GET", "/api/achievements"
     .done (data) ->
       if data['status'] is 1

  apiCall "POST", "/api/problems/submit", {pid: input.data("pid"), key: input.val()}
  .done (data) ->
    if data['status'] is 1
      loadProblems()
      setTimeout( ->
        $("div[data-target='#" + input.data("pid") + "']").click()
      , 100)
    apiNotify data
    apiCall "GET", "/api/achievements"
    .done (data) ->


toggleHint = (e) ->
  pid = $(e.target).data("pid")
  ga('send', 'event', 'Problem', 'OpenHint', 'Basic')
  apiCall "GET", "/api/problems/hint", {"pid": pid, "source": "basic"}
  #$("#"+pid+"-hint").toggle("fast")

