Dynamic GUI functions to its own file