index and layout changed in the process of debugginh the application