update main activity and added sample layout