Created buttons and listeners for accActivity and scriptsActivity