add controler to control server and recognition exit and save