removes unnecessary buttons