ported to metro ui