refactoring for container template, started the work on container menu