Changed MainActivity layout and added progress bar.