adding commanding capabilities and window