Hi shaheenk29,
We see that you're getting a red box around the Apple logo when starting it up, as well as experiencing pop-ups when using it. We can certainly want to ensure everything is working well, and we'd be happy to help out.
With regards to the pop-ups, it's possible this may be due to some adware/malware that got installed unknowingly or inadvertently. Check on this page for some helpful suggestions on how to take care of that:
About pop-up ads and windows in Safari
With the red box around the Apple logo on startup, there are a couple things you may try. Start by doing an NVRAM reset, which won't affect any personal data. Details on what this does, and how to do it, can be found here:
Reset NVRAM or PRAM on your Mac
Take care!