new functions rotate translate in layout