clean code
support ajax index page login