register layer and viewlet