recoded UI in pyQt