added layout and progress bar