If moles are a constant problem you can take defense and make them move on to another yard or flower bed. You will need to mix caster oil and some liquid detergent (either dish liquid or laundry detergent) and mix this together until you have reached a whipped like substance. Put this over areas where you have been seeing the moles.
Treating your lawn for grubs and worms will help moles move out of your flower bed as well.
Most home stores do sell a mole pellet (not sure what is in it) but they say this works as well.