Remove unnecessary lock code from modal views