Calling application layout before view