Set previous action after executing