Add rotary springs (is this a valid term?) to the flap hinges so they're forced down once released from the top edge of the frame.