added button purging