Move actionbar slot resetting to its own function