Break tooltip and modal HTML into separate template