Inner page logic worked out