Integrated Qt designer ui and code

Integrated Qt designer ui and code and deprecated Window class