edit github view function