Dynamically enabled buttons

Some help needed here: Ticket #45 refs #339