added submit functionality to the activities dialog, but submit sends data through url for some reason