+3 your "virus" is that you installed Avast, and Objective-See which at best are 100% worthless. At worst (which is what you are seeing) they do the exact opposite of what users want, they make Mac OS slow, unstable, appear buggy and cause unwanted effects just like what you are experiencing. In return they do absolutely. nothing that Mac OS cannot do on its own! All that Mac OS needs to remains secure, fast and trouble free is simply to keep it up-to-date and restart the computer about 1x per week. Other than that just enjoy it and leave it alone!!
Please locate the developers uninstall instructions for Avast, and Objective-See and follow to the letter. After you have executed them, please restart the computer in Safe Mode and then restart normally. To see if you have completely uninstalled Avast and Objective-See run a fresh EtreCheck report and analyze it to see if ANY remnants of either apps are present. If they are, post back and we can provide instructions.
Please remember that Mac OS is NOT MS Windows, so please don't treat it like it is!