removed events on footer buttons when there is a popup