added some auto-adjustment everytime action is taken