show and hide buttons depending on status