view page logic fixed for group permissions.