add functionality to switch between formz