Corrected the rect Frame to make it flexible for all orientations

Get the screen bounds and draw the correct rect for the current orientation view.