add support for empty view and oninstall/onuninstall callbacks