Form is not responding according to changes