lock and hide some objects