[Clean-up] Extract enable/disable code as separate method
Fix errors in view editing mode
[Fix] Check if proximity sensor is available