update ModelFactory.php
reload mainpage after logout #120