added code behind and resource files