Added option to pass in fileid to custom view