General GUI code to be updated