Starting logic on changing categories