widgets templates refactoring(merge all to one)