For anyone who is interested, I think the problem was due to the difference in the screen size when I was remotely running it on my laptop.
After I changed the dimentions of the objects on the GUI and made it smaller, it is looking perfect even on running it remotely.