GUI after login with queries