Question 1:
Use event.getSource(), it'll return the control which raised the event.
Question 2:
I'm pretty sure you cannot set an ID to a XML view automatically generated (Router). If you are creating your XML view manually (using JavaScript), so you can set an id like in the example below.
oPage = new sap.ui.xmlview("mainview", "sap.ui.demo.wt.view.App");
You can check this link for more information: https://openui5.hana.ondemand.com/index.html#docs/guide/5da591c5a5a54740948acfe56b22fbc3.html