Created ajax panel widget so that the contents of the panel can be loaded from a template, minor fixes and improvements