refactoring and added response layout and progress bar layout