allows setting startmode via data attribute