fixed footer
revised the popup function