using helper function to change button status to active