moved button out of the form as this leads to double fire problems; made flags moveable