added save button to building sub table casts. still need to make it work