H 2 chemistry in galaxy simulations: An improved supernova feedback model