added custom buttons at right positions