Extra improvements to activities menu functions
Fixing activities menu syntax errors