completed main activity layout