changes for solving gui problems.