Tunneling dynamics of ultracold atoms