added undo command for changing layer visible and layer lock