added ending to gui