Set the layer for the main activity.
Set the onclicklistener event