fixed timer running too slow, added main window running on win and linux