adding create button function, needs updating