Commented the code in MyFrame