working rotation and fix border because window was cutting off