window and button parser