fix model and main_page