Observer deletes current JFrame and creates a new JFrame