Remove the memory leak, related with the stack and back button