move "open github url" to a function