appRect changed to applicationFrame