required libraries
added template dialog to choose from a rexfile template on create