add loading view in mainview