def load_note
    @note = if target
      target.notes.find params[:id]
    else
      Note.find_by_id(params[:id], :conditions => {:project_id => current_user.project_ids})