The problem was with the frame as it is obsolete and changing it to border did the trick thanks to @Bhavanesh