add window cascade and tile layout option from tool buttons.
remove unused code
refactor code for ginjection