reworked the page switching logic; moved loading bar between the button sets; page isn't visible until loading complete