added handler for didReceiveMemoryWarning