I remember, I did something same for Start Production Activity.
For it to appear under MES. You should create a layer for Office MES first which you should publish here
Then hide current End Activity Button. Add a new button and hook on all the events responsible to this new button .And when you use app-open you enter your End Activity Layer name as well.
For ex.
This should do the trick.