Resolution to page blank problem

Resolution to page blank problem made with some changes.