update window positions && fix messages