Modularised GUI script