Add get_name function to frontend context