(cleanup) Fix code for displaying splash page when app first loads