Extract function for making issue widget. Part of #102