Add form changing logic