(likely) finalized screen switching functionality