moved two forms into one js call