Change metadata function to get from new view