Secret_key generation wasn't in the __main__ block. Not sure why.
Fixed secret key while in debug mode.
Added menu item so I don't forget to turn off debug mode.
Added select_ap route and allcall submit button