Order code issues in gui