adds route for toggle_wr OPTIONS
adds options action
refactors to only necessary headers