Added functions, passed arguments

I do not think I touch the actual wx calls, though, so I most likely have not broken any real GUI functionality.