delete useless import; add SECRET_KEY setting
now can redirect to edit_page from page
delete useless flashing info; edit legend info