Fix buttons position and behavior.