template function with get all info about user and some templates