updates buttons position