removed unnecessary call in MainPane