Added Codes for freeMemory and goButton