Modify the function of create activity