Added refresh option to extensiontype and componenttype routes