organizing code layout and updating text