Adds activation script, fixes context detection, refactors menu setup