Added condition to viewlet.pt