You can try these life hacks:
– Hatpins
– Hat Elastic
– Bobby Pins
– A Hair Comb