[views] moved some functions from views/__init__.py to views/__ajax__.py