reversing stack memory in gui