adjusting of log and buttons