Fixed gui template to be truly generic :P