Hi
Looking at your code it appears you are trying to place a different footer on your page depending on the icon tab bar content.
Footer is not an aggregation of content, footer should be placed inside the page aggregation.
What you could try placing your footer in the page footer then using your controller to either show or hide the button depending on with tab bar option is selected.