Re-writing GUI