Some changes made into sms_mainwindow.py