alignCenter fucntion