activity automation page and fixed some bugs