Added some functions, which handle the commands by the server. Todo: Changing file to the same file again does not show anything yet