Metastable states as a key to the dynamics of supercooled liquids