clean some functions. preparing admin's panel