forgot check_form on footer links
minor changes and file reorganization