Got permanent and trail functionality working; updates when radio button pressed