Issue #4023 

add csrf token to settings and pairing views