function add: support orientation change