solved the problem with position of statusbar using idle event