Removed unnecessary gui code