Fixed setuping function. Added tags manager setup function. Code is cleaned.