Fix compile error, added activity indicator