added ajax call to activity dialog. will create a new activity in the database. includes error checking for the error code 600. fix #9