moved modals to footer.tpl from header.tpl