public void setCurrentUser(Integer id) throws Exception {
        if(id > this.users.size() || id < 1){
            throw new Exception("user id" + id.toString() + "not exist in system");
        }
        this.currentUser = users.get(id);
        this.currentUser.getCounter().setActive();
    }