cleaner gui code; wx gui frontend