3 main activity layout and code