moved setLocation of frames so they are in the middle of screen