Write handlers; made GUI elements expand